package io.jft.doll.room.repository

import io.jft.doll.api.GameHistoryApi
import io.jft.doll.api.apiProviderMock
import com.g.base.room.repository.BaseRepository
import com.g.base.room.repository.NetworkBoundResult
import com.google.gson.JsonObject

/**
 * Created by G on 2017/12/5 0005.
 */
class GameHistoryRepository : BaseRepository() {
    fun getGameHistoryList(jsonObject: JsonObject) = NetworkBoundResult({ apiProviderMock.create(GameHistoryApi::class.java).gameHistoryList(jsonObject) })
    fun postGameFeedback(jsonObject: JsonObject) = NetworkBoundResult({ apiProviderMock.create(GameHistoryApi::class.java).feedBack(jsonObject) })
}